package cn.stylefeng.guns.modular.order.mapper;

import cn.stylefeng.guns.modular.order.entity.OutOrderDetailed;
import cn.stylefeng.guns.modular.order.model.params.OutOrderDetailedParam;
import cn.stylefeng.guns.modular.order.model.result.OutOrderDetailedResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 出库订单明细表 Mapper 接口
 * </p>
 *
 * @author hu
 * @since 2019-07-08
 */
public interface OutOrderDetailedMapper extends BaseMapper<OutOrderDetailed> {

    /**
     * 获取列表
     *
     * @author hu
     * @Date 2019-07-08
     */
    List<OutOrderDetailedResult> customList(@Param("paramCondition") OutOrderDetailedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author hu
     * @Date 2019-07-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") OutOrderDetailedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author hu
     * @Date 2019-07-08
     */
    Page<OutOrderDetailedResult> customPageList(@Param("page") Page page, @Param("paramCondition") OutOrderDetailedParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author hu
     * @Date 2019-07-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") OutOrderDetailedParam paramCondition);

    /**
     * 获取出库订单编号
     * @param paramCondition
     * @return
     */
    List<OutOrderDetailedResult> findListBySpec(@Param("paramCondition") OutOrderDetailedParam paramCondition);

	List<OutOrderDetailedResult> findListGroupGoodsidBySpec(@Param("paramCondition")OutOrderDetailedParam outParam);

	boolean saveBatchList(@Param("list")List<OutOrderDetailedParam> list);

	List<OutOrderDetailedResult> findListBySpecsss(@Param("paramCondition")OutOrderDetailedParam param);

	List<OutOrderDetailedResult> findOrderDetailsBystorageOutNumber(@Param("paramCondition")OutOrderDetailedParam param
			, @Param("strs")String[] strs);

	OutOrderDetailedResult findBySpec(@Param("paramCondition")OutOrderDetailedParam param);

}
